package com.hengpeng.itfinbase.constants;

/**
 * <pre>
 * 业务交易常量
 * </pre>
 * 
 * @author zhaojitao
 * @version 1.0, 2015-5-27
 */
public class TransCodeConstants {
    public static final int DIRECT_SERVICE = 9999; // 直接业务方法调用交易

    /**
     * <pre>
     * 用户模块交易类型
     * </pre>
     */
    public final class MemberTransCode {

        public static final int MEMBER_REGISTER = 1010;// 用户注册

        public static final int MEMBER_PARTNER_OPEN = 1020;// 用户第三方开户（汇付开户）

        public static final int MEMBER_PARTNER_NOTIFY = 1021;// 第三方交易后台通知（汇付通知）

        public static final int MEMBER_LOGIN = 1030;// 用户登陆

        public static final int MEMBER_UPDATE_PWD = 1040;// 修改密码

        public static final int MEMBER_REALNAME_AUTH = 1041;// 实名认证

        public static final int MEMBER_SET_PROTECT_PWD = 1042;// 用户设置密保

        public static final int MEMBER_VALID_EMAIL = 1043;// 邮箱验证

        public static final int MEMBER_VALID_EMAIL_AFFIRM = 1044;// 邮箱验证邮件确认

        public static final int MEMBER_VALID_MOBILE = 1045;// 手机验证

        public static final int MEMBER_VALID_MOBILE_AFFIRM = 1046;// 手机验证短信确认

        public static final int MEMBER_BANKCARD_SAVE = 1047;// 资金池银行卡添加

        public static final int MEMBER_BANKCARD_UPDATE = 1048;// 资金池修改银行卡

        public static final int MEMBER_BANKCARD_BD = 1049;// 资金池 银行卡绑定

        public static final int MEMBER_BANKCARD_REMOVE = 1050;// 资金池 银行卡删除

        public static final int ISTRUSTPATTER = 1051;// 判断是否在资金池模式

        public static final int MEMBER_BING_MOBILE = 1052;// 手机绑定

        public static final int MEMBER_ACTIVE_EMAIL = 1052;// 邮箱注册激活

    }

    public final class PartnerTransCode {
        public static final int REQUEST = 2010;// 前台请求

        public static final int NOTIFY = 2011;// 后台返回

    }

    /**
     * <pre>
     * 标的交易类型
     * </pre>
     */
    public final class TradeTransCode {
        public static final int TRADE_INVEST = 201;// 主动投标

        public static final int TRADE_REPAYMENT = 202;// 借款人正常还款

        public static final int TRADE_REPAYMENT_PLATFORM = 203;// 平台垫付还款

        public static final int TRADE_CREATEASSIGEN = 204;// 投资人发布债权转让

    }

    /**
     * 资金池相关资金交易
     */
    public final class AccountTransType {
        /**
         * 充值请求
         */
        public static final int ACCOUNT_PAYMENT_REQUEST = 705;
    }

    /**
     * 标的相关交易
     */
    public final class BidTransCode {
        /**
         * 标的信息录入
         */
        public static final int BID_ADDBIDINFO_REQUEST = 801;

        /**
         * 标的放款
         */
        public static final int BID_LOANS_REQUEST = 802;

        /**
         * 流标
         */
        public static final int BID_LOSS_REQUEST = 803;
    }

    /**
     * 活动相关交易
     * 
     * @author weiyuan
     */
    public final class ActivityTransCode {
        /**
         * 注册送红包
         */
        public static final int REGISTER_SEND_REDPACKET = 3001;
        /**
         * 解冻红包
         */
        public static final int UNFREE_REDPACKET = 3002;
        /**
         * 投资送红包
         */
        public static final int INVEST_SEND_REDPACKET = 3003;
        /**
         * 邀请送红包
         */
        public static final int INVITE_SEND_REDPACKET = 3004;
        /**
         * 投资返利
         */
        public static final int INVEST_SEND_REBATE = 3005;
        /**
         * 生成分享红包
         */
        public static final int CREATE_SHARE_REDPACKET = 3006;
    }

    public final class OtherTransCode {
        /**
         * 生成流水号
         */
        public static final int SEQUENCE_NO = 901;

        /**
         * 给用户加钱
         */
        public static final int ADD_MONEY = 902;
    }

}
